package com.example.fw;

public class UsersList implements Comparable<UsersList>  {
	
	public String userName;
	
	public UsersList(){
	}

	@Override
	public int compareTo(UsersList o) {
		return 0;
	}

	@Override
	public String toString() {
		return "UsersList [userName=" + userName + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((userName == null) ? 0 : userName.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		UsersList other = (UsersList) obj;
		if (userName == null) {
			if (other.userName != null)
				return false;
		} else if (!userName.equals(other.userName))
			return false;
		return true;
	}
	
	// -------------------------------------------------- //
	
	public UsersList withUserName(String name) {
		this.userName = name;
		return this;
	}

}
